package com.heima.wemedia.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 自媒体用户信息表
 * </p>
 *
 * @author HM
 * @since 2023-03-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "WmUser对象", description = "自媒体用户信息表")
public class WmUser implements Serializable {


    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "app用户id")
    private Integer apUserId;

    @ApiModelProperty(value = "作者id")
    private Integer apAuthorId;

    @ApiModelProperty(value = "登录用户名")
    private String name;

    @ApiModelProperty(value = "登录密码")
    private String password;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "头像")
    private String image;

    @ApiModelProperty(value = "归属地")
    private String location;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "状态	 0 暂不可用	  1 永久不可用	  9 正常可用")
    private Integer status;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "账号类型	            0 个人 	 1 企业	  2 子账号")
    private Integer type;

    @ApiModelProperty(value = "运营评分")
    private Integer score;

    @ApiModelProperty(value = "最后一次登录时间")
    private Date loginTime;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;


}
